﻿using Com.OpenCode.Framework.DevForm;
using DevExpress.XtraBars;
using DevExpress.XtraTreeList.Nodes;

namespace Com.OpenCode.Framework.Test
{
    public class TestTree : OpenCodeTreeUI
    {
        public override void CreateRightMenu()
        {
            BlankMenu = new TestRightMenu(BarManager);
            base.CreateRightMenu();
        }

        public override void AddColunms()
        {
            CreateColumn("12321");
            CreateColumn("12321");
            CreateColumn("12321");
        }

        public override void AddImages()
        {
            CreateImage(TestAddinActivator.Addin, "TestIcon");
        }

        public override void UpdateRow(TreeListNode node)
        {
            base.UpdateRow(node);
            node.ImageIndex = 0;
            node.SelectImageIndex = 0;
            node.StateImageIndex = 0;
        }

    }
}
